package com.example.library;

import com.google.gson.annotations.SerializedName;

public class User {
    @SerializedName("id")
    private int id;
    
    @SerializedName("name")
    private String name;
    
    @SerializedName("studentId")
    private String studentId;
    
    @SerializedName("password")
    private String password;
    
    @SerializedName("contact")
    private String contact;
    
    @SerializedName("userType")
    private String userType;
    
    @SerializedName("creditScore")
    private int creditScore;
    
    @SerializedName("status")
    private int status;
    
    @SerializedName("isBlacklisted")
    private boolean isBlacklisted;

    public int getId() { return id; }
    public void setId(int id) { this.id = id; }
    public String getName() { return name; }
    public void setName(String name) { this.name = name; }
    public String getStudentId() { return studentId; }
    public void setStudentId(String studentId) { this.studentId = studentId; }
    public String getPassword() { return password; }
    public void setPassword(String password) { this.password = password; }
    public String getContact() { return contact; }
    public void setContact(String contact) { this.contact = contact; }
    public String getUserType() { return userType; }
    public void setUserType(String userType) { this.userType = userType; }
    public int getCreditScore() { return creditScore; }
    public void setCreditScore(int creditScore) { this.creditScore = creditScore; }
    public int getStatus() { return status; }
    public void setStatus(int status) { this.status = status; }
    public boolean isBlacklisted() { return isBlacklisted; }
    public void setBlacklisted(boolean blacklisted) { isBlacklisted = blacklisted; }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", studentId='" + studentId + '\'' +
                ", contact='" + contact + '\'' +
                ", userType='" + userType + '\'' +
                ", creditScore=" + creditScore +
                ", status=" + status +
                ", isBlacklisted=" + isBlacklisted +
                '}';
    }
} 